#pragma once

#include <QtGui/QFrame>
#include <QtGui/QPushButton>
#include <QtGui/QTextEdit>
#include <QtGui/QCheckbox>

#include "MikinolSensor.h"

namespace Mikinol
{

class QSkeletonTrackingDataWidget :	public QFrame,
									public Sensor::Listener
{ 
	Q_OBJECT

public:
	QSkeletonTrackingDataWidget( QWidget* parent, Sensor* sensor );
	virtual ~QSkeletonTrackingDataWidget();

	Sensor*				getSensor() const { return mSensor; }

protected:
	virtual void		onInitialize( Sensor* sensor );
	virtual void		onShutdown( Sensor* sensor );
	virtual	void		onCapturedSkeletonTrackingData( Sensor* sensor );

	void				updateSkeletonTrackingDataTextEdit();

private slots:
	void				startButtonPressed();
	void				stopButtonPressed();

private:
	Sensor*				mSensor;
	
	QCheckBox*			mSeatedModeCheckBox;
	QPushButton*		mStartButton;
	QPushButton*		mStopButton;
	QTextEdit*			mSkeletonTrackingDataTextEdit;
};

}
